package com.ccav.util;

public class StudentPage {
    private String keyword;
    private Integer page = 1;
    private Integer row = 1;

    @Override
    public String toString() {
        return "PageUtil{" +
                "keyword='" + keyword + '\'' +
                ", page=" + page +
                ", row=" + row +
                '}';
    }

    private Integer startPage(){
        return (page-1)*row;
    }

    public String getKeyword() {
        if(null == keyword || "".equals(keyword.trim())){
            return null;
        }
        return keyword.trim();
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }
}
